package com.sie.service.impl;

import com.sie.mapper.RoleManagerMapper;
import com.sie.pojo.RoleManager;
import com.sie.service.RoleManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleManagerServiceImpl implements RoleManagerService {

    @Autowired
    private RoleManagerMapper roleManagerMapper;
    @Override
    public List<RoleManager> findAll() {
        return roleManagerMapper.findAll();
    }

    @Override
    public int insertRole(RoleManager role) {
        return roleManagerMapper.insertRole(role);
    }
}
